package com.atguigu.gmall.item.all.comtroller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class PassportController {

    //跳转到登录界面
    @GetMapping("login.html")
    public String login(HttpServletRequest request){
        //获取到从哪里跳转的url
        String originUrl = request.getParameter("originUrl");
        request.setAttribute("originUrl",originUrl);
        //返回登录界面
        return "login";
    }
}
